import request from '@/utils/request'
import { handlerGetUrlParams } from '@/utils/dealUrlParams.js'

export function getMapStatistics() {
  return request({
    url: '/bus/patentMap/list',
    method: 'GET',
  })
}

export function getMapStatisticsList(param) {
  const url = handlerGetUrlParams('/bus/patentMap/history', param)
  return request({
    url,
    method: 'GET',
  })
}

export function addMapStatistics(data) {
  return request({
    url: '/bus/patentMap/add',
    method: 'POST',
    data
  })
}

export function getMapStatisticsDetail(ids) {
  return request({
    url: `/bus/patentMap/${ids}`,
    method: 'GET',
  })
}